package com.veo.controller;

import com.veo.entity.Department;
import com.veo.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DepartMentController {

    @Autowired
    private DepartmentService service;

    @GetMapping("/dept/{id}")
    public Department getDept(@PathVariable("id")Integer id){
        return service.getDept(id);
    }

}
